-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/add application codes to all memos #168
base: master
Are you sure you want to change the base?
Conversation
… to merge into master
…hub.com/KTH/kurs-pm-data-api into feat/Add-application-codes-to-all-memos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It look like one parameter if off if to compare with prev code, should be checked, otherwise looks good to me. Ready to be tested on all test data
swagger.json
Outdated
"type": "string" | ||
}, | ||
{ | ||
"name": "status", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this status is a duplicate of the one on line 289
server/lib/dbSeveralDocument.js
Outdated
await webBasedMemos.map(({ ladokRoundIds }) => finalObj.usedRoundsThisSemester.push(...ladokRoundIds)) | ||
await dbMigratedPdfs.map(({ koppsRoundId }) => finalObj.usedRoundsThisSemester.push(...koppsRoundId)) | ||
await webBasedMemos.map(({ applicationCodes }) => finalObj.usedRoundsThisSemester.push(...applicationCodes)) | ||
await dbMigratedPdfs.map(({ applicationCodes }) => finalObj.usedRoundsThisSemester.push(...applicationCodes)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here it looks like it should destruct dbMigratedPdfs applicationCode
(singular) if to compare with prev code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One parameter seems is off, should be checked before running on test data
Note: Please do not merge this PR. It is only for review to update both collections with application codes.